<%@ page import="org.quartzweb.util.QuartzUtils" %>
<%@ page import="org.quartzweb.job.HelloJob" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>添加任务</title>
  </head>
  <body>
  <%
    SimpleDateFormat formatDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    String str = "2016-12-30 11:41:00";
    String str2 ="2016-12-31 11:45:00";
    Date startTime = formatDate.parse(str);
    Date endTime = formatDate.parse(str2);
      QuartzUtils.addJob("job2", "job_group1", "trigger2", "trigger_group1",
              HelloJob.class, "0/5 * * * * ?",
              startTime,
              endTime);
  %>
  </body>
</html>
